<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:a4j="http://richfaces.org/a4j" 
    xmlns:rich="http://richfaces.org/rich">

	<h:head>
		<title>Login Page</title> 
		<link href="../css/style.css" rel="stylesheet" type="text/css"/>
	</h:head>
	<h:body>
		<f:view>		
			<center>
				<h:panelGrid width="380px" columns="2" border="0">
					<rich:panel header="Login Successful" style="background-color: #ebf3fd;">
						<center>
							<h:outputText value="Welcome " style="font-size:15px;font-weight:bold"/>
							<h:outputText value="#{sessionScope.username}" style="font-size:15px;font-weight:bold"/>
						</center>					

						<h:form>
							<br/>
							
							<h:commandLink value="Edit User Profile" action="#{userForm.editProfile}" /><br/><br/>

							<h:commandLink value="Change Password" action="changePassword" /><br/><br/>

							
							<h:commandLink value="Logout" action="#{LoginForm.logout}" />
						</h:form>
					</rich:panel>
				</h:panelGrid>
			</center>
		</f:view>
	</h:body>
</html>
